<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.1/css/bulma.css">

</head>
<body>

<div id="root">
<p contenteditable="true" v-text="comment" @input="comment = $event.target.innerText"></p>
<br><br><br><br>
<textarea :value="comment" @input="comment = $event.target.value"></textarea>
</div>
<script>

    var vm = new Vue({
        el:"#root",
        data:{
            comment:"这是一条评论"
        }
    });

</script>
<script src="https://cdn.bootcss.com/vue/2.2.6/vue.js"></script>
</body>
</html>
